package com.beasts.antpage.core.utils;


import org.apache.commons.lang3.StringUtils;

/**
 * String util
 *
 * @author Locker
 * @date 23/04/2018 2:14 PM
 * @since 1.0
 */
public class StringUtil extends StringUtils {

    /**
     * 单词字符串首字母大写
     */
    public static String toUpperCaseFirstOne(String s) {
        if ("".equals(s)) {
            return s;
        }
        char[] cs = s.toCharArray();
        if (cs[0] >= 'a' && cs[0] <= 'z') {
            cs[0] = (char) (cs[0] - 32);
        }
        return String.valueOf(cs);
    }


}
